<?php

class DiaController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        $dia = 1;
        $mes = 1;
        $ano = 2012;
        
        $mdl = new Application_Model_Dia();
        for($i = 0; $i < 5000; $i++)
        {
        	$data = date('d-m-Y',mktime(0,0,0,$mes,($dia)+$i,$ano));
        	$mdl->insert(array('dia' => $data));
        }
        
        
        $this->view->data = $data;
    }
    
    


}

